package com.wn.service.impl;

import com.wn.bean.Permission;
import com.wn.mapper.PermissionMapper;
import com.wn.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PermissionServiceImpl implements IPermissionService {

    @Autowired
    private PermissionMapper pm;

    @Override
    public List<Permission> queryPermissionByUsername(String username) {
        List<Permission> permissionList = pm.queryPermissionByUsername(username);
        return permissionList;
    }

}